/**
 * 
 */
package sailing.filters.ui.laf;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.text.JTextComponent;

import com.sun.java.swing.plaf.windows.WindowsTextFieldUI;

/**
 * @author kevin
 * 
 */
public class FilterTextFieldUI extends WindowsTextFieldUI {

	private static Color border = new Color(220, 220, 220);

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sun.java.swing.plaf.windows.WindowsTextFieldUI#paintBackground(java.awt.Graphics)
	 */
	@Override
	protected void paintBackground(Graphics g) {
		super.paintBackground(g);
		JTextComponent jtc = this.getComponent();
		g.setColor(border);
		g.drawRect(0, 0, jtc.getWidth()-1, jtc.getHeight()-1);
	}
	
	

}
